package com.shenyong.ladmin.entity;

import java.util.List;

/**
 * Create By:qiang
 * Date: 2019/11/25 15:03
 * 文件说明: Comment
 */
public class Comment {
    private int comment_id;// 评论编号
    private int comment_articleid;// 评论文章编号
    private int comment_userid;// 评论用户编号
    private String comment_coumtent;// 评论内容
    private int comment_clickNumber;// 评论点赞数
    private String comment_date;// 评论时间
    private Article article; // 文章类
    private Users users; // 用户类
    private List<Reply> replyList; // 评论回复集
    private int comment_state;// 评论状态 0表示草稿箱，1表示已发表，2表示已删除

    public Comment() {
    }

    public Comment(int comment_id, int comment_articleid, int comment_userid, String comment_coumtent, int comment_clickNumber, String comment_date, Article article, Users users, List<Reply> replyList, int comment_state) {
        this.comment_id = comment_id;
        this.comment_articleid = comment_articleid;
        this.comment_userid = comment_userid;
        this.comment_coumtent = comment_coumtent;
        this.comment_clickNumber = comment_clickNumber;
        this.comment_date = comment_date;
        this.article = article;
        this.users = users;
        this.replyList = replyList;
        this.comment_state = comment_state;
    }

    public int getComment_id() {
        return comment_id;
    }

    public void setComment_id(int comment_id) {
        this.comment_id = comment_id;
    }

    public int getComment_articleid() {
        return comment_articleid;
    }

    public void setComment_articleid(int comment_articleid) {
        this.comment_articleid = comment_articleid;
    }

    public int getComment_userid() {
        return comment_userid;
    }

    public void setComment_userid(int comment_userid) {
        this.comment_userid = comment_userid;
    }

    public String getComment_coumtent() {
        return comment_coumtent;
    }

    public void setComment_coumtent(String comment_coumtent) {
        this.comment_coumtent = comment_coumtent;
    }

    public int getComment_clickNumber() {
        return comment_clickNumber;
    }

    public void setComment_clickNumber(int comment_clickNumber) {
        this.comment_clickNumber = comment_clickNumber;
    }

    public String getComment_date() {
        return comment_date;
    }

    public void setComment_date(String comment_date) {
        this.comment_date = comment_date;
    }

    public Article getArticle() {
        return article;
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public List<Reply> getReplyList() {
        return replyList;
    }

    public void setReplyList(List<Reply> replyList) {
        this.replyList = replyList;
    }

    public int getComment_state() {
        return comment_state;
    }

    public void setComment_state(int comment_state) {
        this.comment_state = comment_state;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "comment_id=" + comment_id +
                ", comment_articleid=" + comment_articleid +
                ", comment_userid=" + comment_userid +
                ", comment_coumtent='" + comment_coumtent + '\'' +
                ", comment_clickNumber=" + comment_clickNumber +
                ", comment_date='" + comment_date + '\'' +
                ", article=" + article +
                ", users=" + users +
                ", replyList=" + replyList +
                ", comment_state=" + comment_state +
                '}';
    }
}
